# -*- coding: utf-8 -*-
# @Author: fanmingxiang@touty.io
# @Date: 2023/3/20 13:47
import json
import os

from ApiAutoTestPlatform import settings

CURRENT_PATH = settings.BASE_DIR + os.sep + 'apitests'


# filepath = CURRENT_PATH + os.sep + 'templates\json\case_data.json'

def read_json(filepath):
    file_path = CURRENT_PATH + os.sep + "templates" + os.sep + "json" + os.sep + filepath
    arr = []
    with open(file_path, 'r', encoding='utf-8') as f:
        for data in json.load(f).values():
            arr.append(tuple(data.values()))
        return arr


if __name__ == '__main__':
    read_json()
